﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NTmdb.TestProject
{
    /// <summary>
    ///     This is a test class for TmdbReviewPreviewTest and is intended
    ///     to contain all TmdbReviewPreviewTest Unit Tests
    /// </summary>
    [TestClass]
    public class TmdbReviewPreviewTest
    {
        /// <summary>
        ///     A test for TmdbReviewPreview Constructor
        /// </summary>
        [TestMethod]
        public void TmdbReviewPreviewConstructorTest()
        {
            var target = new TmdbReviewPreview();
            Assert.IsNotNull( target );
        }

        /// <summary>
        ///     A test for Author
        /// </summary>
        [TestMethod]
        public void AuthorTest()
        {
            var target = new TmdbReviewPreview();
            string expected = Guid.NewGuid().ToString();
            string actual;
            target.Author = expected;
            actual = target.Author;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for Content
        /// </summary>
        [TestMethod]
        public void ContentTest()
        {
            var target = new TmdbReviewPreview();
            string expected = Guid.NewGuid().ToString();
            string actual;
            target.Content = expected;
            actual = target.Content;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for Id
        /// </summary>
        [TestMethod]
        public void IdTest()
        {
            var target = new TmdbReviewPreview();
            string expected = Guid.NewGuid().ToString();
            string actual;
            target.Id = expected;
            actual = target.Id;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for Url
        /// </summary>
        [TestMethod]
        public void UrlTest()
        {
            var target = new TmdbReviewPreview();
            string expected = Guid.NewGuid().ToString();
            target.Url = expected;
            string actual = target.Url;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for Serialize & Deserialize
        /// </summary>
        [TestMethod]
        public void SerializeDeserializeTest()
        {
            Assert.Inconclusive();
        }
    }
}